/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package api.gest;

import api.dom.Gasto;
import java.util.ArrayList;

/**
 *
 * @author Enrico
 */
public class GestGastos {
    private ArrayList<Gasto> mColGastos = new ArrayList<Gasto>();
    private static GestGastos objGestG = null;
    
      public static GestGastos getInstance()
  {
        if (objGestG == null){
            objGestG = new GestGastos();
            }
        return objGestG;
  }
      
      
      public boolean altaGasto(Gasto xObjG){     
              mColGastos.add(xObjG);
              return true;
      }
      
      public ArrayList<Gasto> devolverGastos(){
          return mColGastos;
      }
    
}
